package com.txhy.certificatechain.ui.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.GridView;

/*
 * -----------------------------------------------------------------
 * Copyright (C) 2018-2030, by your company, All rights reserved.
 * -----------------------------------------------------------------
 * 文    件: NoScrollGridView.java
 * 作    者: 侯建军
 * 版    权: 1.0.0
 * 描    述: 不滚动表格
 * 创建时间: 2018/9/20 8:14
 * 更新时间：2018/9/20 8:14
 * -----------------------------------------------------------------
 * 2018/9/20 8:14: 创建 NoScrollGridView.java (侯建军);
 * -----------------------------------------------------------------
 */
public class NoScrollGridView extends GridView {
    public NoScrollGridView(Context context) {
        super(context);
    }
    public NoScrollGridView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, View.MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, expandSpec);
    }
}